﻿using PropertyChanged;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace bigscreen_ai_demo.DB
{
    [AddINotifyPropertyChangedInterface]
    [SugarTable("ModelA")]
    public class ModelA
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        
        public int Id { get; set; }
        [SugarColumn(IsNullable = true)]
        public string? FT_0301 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0501 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? FT_0302 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? FT_0401 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? LT_0301 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? LT_0401 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? LT_0601 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0601 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]

        public string? PDT_0502 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0501 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PIAS_0102 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? FT_0103A { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]

        public string? WT_0101 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0302 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0302 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0301E { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0301D { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0301C { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0301B { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0301B { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0303 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0301A { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0402 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0401 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0401 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0402 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? TT_0403 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PT_0301D { get; set; } = string.Empty;

        [SugarColumn(IsNullable = true)]
        public string? PVF_0301 { get; set; } = string.Empty;
        [SugarColumn(IsNullable = true)]
        public string? PVF_0302 { get; set; } = string.Empty;
        /// <summary>
        /// 数据处理状态，0:已上报 1:已处理
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int? State { get; set; } = 0;
        [SugarColumn(IsNullable = true)]
        public DateTime? Created { get; set; } = DateTime.Now;

        [SugarColumn(IsNullable = true)]
        public DateTime? Updated { get; set; }

    }


    [AddINotifyPropertyChangedInterface]
    [SugarTable("ModelB_OUTPUT")]
    public class ModelA_OUTPUT: ModelA
    {
        public int Type { get; set; }
    }


}
